You searched for: “vitam regit fortuna non sapientia
Vitam regit fortuna non sapientia. (Latin proverb)
Translation: "Chance, not wisdom, governs human life."

Another interpretation: "Life is mostly a matter of luck."